function useState<T>( state:T ){
  let currentState = state

  const changeState = (newState:T) =>{
    currentState = newState
  }
  const tuple:[T,(newState:T)=> void] = [currentState,changeState]
  return tuple
}

let [counter,setCounter] = useState(10)
let [name,setName] = useState('abc')

export {}